package piece;
//O
import java.util.ArrayList;
import java.util.List;
import object.Piece;
import object.Square;
import static object.Piece.SQUARE_BORDER;

public class PieceO extends Piece {
	public PieceO(int image) {
		//创建各个小方块，一个集合为一种变化
		List<Square> squares = new ArrayList<>();
		squares.add(new Square(image, 0, 0));
		squares.add(new Square(image, 0, SQUARE_BORDER));
		squares.add(new Square(image, SQUARE_BORDER, 0));
		squares.add(new Square(image, SQUARE_BORDER, SQUARE_BORDER));
		//加入到变化中
		super.changes.add(squares);
		super.setSquares(squares);
	}
}
